<?php
ini_set('error_reporting', 6143);
ini_set('display_errors','1');
define('IN_LC', true);
define('MM_ID', 0);

include_once("validate.php");
include_once("includes/style.php");
include_once("includes/usercp_sections.php");
include_once("includes/side_menu.php");

// are we showing an actual profile?
if (isset($_SESSION["valid_id"]))
{

	$style = new style(true);	
	include_once('includes/side_menu.php');
	$style->addRenderLeft(new side_menu('usercp'));
	if(isset($_GET['action']))
	{
		$cp = new usercp_sections($_GET['action']);
	}
	else
	{
		$cp = new usercp_sections('myteams');
	}
	$style->addRenderRight($cp);
	$style->render();
}
else
{
	Header("Location: index.php");
}

echo $db->num_queries;
?>